package com.hnqcgc.sgzShopping.dao;

import com.hnqcgc.sgzShopping.vo.TUser;

import java.sql.SQLException;
import java.util.List;

public interface IUserDao {

    //增   删    改    查

    boolean insertUser(TUser tUser)throws SQLException;


    boolean deleteById(String tuID)throws SQLException;


    boolean updateById(TUser tUser)throws SQLException;

    //查昵称存不存在

    boolean queryById(String tuId)throws SQLException;

//根据真实姓名
    List<TUser> queryByName(String name)throws SQLException;

    //登录

    boolean login(String tuId,String tuPassWord)throws SQLException;



}
